package com.example.ecommercedemo.service;

import com.example.ecommercedemo.entity.Good;
import com.example.ecommercedemo.utils.PageResult;

import java.util.List;


public interface GoodService
{
//    查询good
    public Good selectGoodByGid(Long gid);

//    查询good列表
    public PageResult selectGoodList(Good good, int pageNum, int pageSize);

//    新增good
    public int insertGood(Good good);

//    修改good
    public int updateGood(Good good);

//    批量删除good
    public int deleteGoodByGids(Long[] gids);

//    删除good信息
    public int deleteGoodByGid(Long gid);
    //根据cid查询
    public Good selectGoodByCid(Long cid);
    //不分页查询good列表
    public List<Good> selectGoodListBynot(Good good);
}
